/*
 * @Author: ziqi jhzq12345678
 * @Date: 2024-08-17 16:14:49
 * @LastEditors: ziqi jhzq12345678
 * @LastEditTime: 2024-08-30 21:34:29
 * @FilePath: /pornhub_app/lib/src/modules/webview/vebview_page.dart
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import 'package:pornhub_app/views/webview/webview_android.dart';
import 'package:pornhub_app/views/webview/webview_web.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

class AppWebViewPage extends StatelessWidget {
  final String url;
  const AppWebViewPage({
    super.key,
    required this.url,
  });

  @override
  Widget build(BuildContext context) {
    return kIsWeb
        ? H5WebViewPage(
            url: url,
          )
        : AndroidWebViewPage(
            url: url,
          );
  }
}
